import { ElNotification } from 'element-plus'


function getNotifyReq() {
  sa.ajax('/api/webOnlineInquiry/waitingOnlineInquiryList', {}, function (res) {
    if (res.code == '1') {
      notify('新消息', res.data.length + '条新消息', 'success')
    }
  })
}
function notify(title, message, type) {
  ElNotification({
    title: title,
    message: message,
    type: type,
    onClick: () => {
      console.log('clicked!')
      // ElNotification.close()
    }
  })
}